# $Id: PKGBUILD,v 1.8 2009/04/02 12:02:27 BaSh Exp $
# Maintainer: Roman Kyrylych <roman@archlinux.org>
# Contributor: yosh64 <yosh64.at.gmail.dot.com>
# Update: Carbon Jiao <http://archlive-pkg.googlecode.com>

pkgname=mtpaint-cn
_realpkgname=mtpaint
pkgver=3.30
pkgrel=1
pkgdesc="A simple GTK2 painting program designed for creating icons and pixel based artwork."
arch=('i686' 'x86_64')
provides=('mtpaint=3.30')
url="http://mtpaint.sourceforge.net"
license=('GPL')
depends=('gtk2' 'libungif' 'libpng' 'libjpeg' 'libtiff')
source=(http://downloads.sourceforge.net/${_realpkgname}/${_realpkgname}-$pkgver.tar.bz2
        ${_realpkgname}.desktop #zh_CN.po
        )
md5sums=('a796b96aca4aeafface5a534253084ca')

build() {
	cd $srcdir/${_realpkgname}-$pkgver

	./configure --prefix=$pkgdir/usr man intl gif jpeg tiff
	make || return 1
	make install

	mv $startdir/pkg/usr/man $startdir/pkg/usr/share/man

	install -D -m755 ${srcdir}/${_realpkgname}.desktop ${pkgdir}/usr/share/applications/${_realpkgname}.desktop

}
